<template>
<div class="view-Other1">
	<Setup1></Setup1>
	<teleport to="body">
		<div>我是来自 teleport 的代码块</div>
	</teleport>
	<span v-testColor='color1' @click='fnColor1'>自写义指令-testColor</span>
</div>
</template>
<script>
import { ref } from 'vue'
import Setup1 from '/@/compositionAPI/others/Setup1.vue'

export default {
	name: 'Other1',
	components: {
		Setup1,
	},
	setup (props, context) {
		const color1 = ref('red');
		const fnColor1 = () => {
			console.log(11);
			color1.value = '#999';
		};
		return {
			color1,
			fnColor1,
		}
	},
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>